//模拟数据
const cityOptions = ['PH', '温度', '余氯', '浊度', "NH3-N", "COD", "溶解氢"];


//查询出来的结果
var analQueryData = [{
    title: 'ZSAD25SV-ASDV2'
}, {
    title: 'SD25V2GD-AS25F'
}, {
    title: 'QW25VF2V-G2555'
}];

//基础数据查询条件
var analBaseData = [{
    value: '1',
    label: '数据1'
}, {
    value: '2',
    label: '数据2'
}];

var WeatherWebData = [{
    value: '深圳气象数据网',
    label: '深圳气象数据网'
}, {
    value: '香港天文台',
    label: '香港天文台'
}, {
    value: '太阳辐射',
    label: '太阳辐射'
}, {
    value: '潮汐数据',
    label: '潮汐数据'
}];

var WeatherWebData_en = [{
    value: '深圳气象数据网',
    label: 'Shenzhen Meteorological Network'
}, {
    value: '香港天文台',
    label: 'Hong Kong Observatory'
}, {
    value: '太阳辐射',
    label: 'Sun radiation'
}, {
    value: '潮汐数据',
    label: 'Tide data'
}];


var obsSelectOData = [ {
    value: '水质数据',
    label: '水质数据'
}];
var obsSelectOData_en = [ {
    value: '水质数据',
    label: 'Water quality data'
}];


//行政区域查询条件
var analAreaData = [{
    value: '1',
    label: '宝安区'
}, {
    value: '2',
    label: '龙华区'
}, {
    value: '3',
    label: '坪山区'
}, {
    value: '4',
    label: '光明区'
}, {
    value: '5',
    label: '大鹏新区'
}];


//历史数据---数据类型
var HistroySelectOData = [{
    value: '香港天文台',
    label: '香港天文台'
}, {
    value: '潮汐数据',
    label: '潮汐数据'
}, {
    value: '水质数据',
    label: '水质数据'
}, {
    value: '深圳气象数据网',
    label: '深圳气象数据网'
}, {
    value: '太阳辐射',
    label: '太阳辐射'
}];

var HistroySelectOData_en = [{
    value: '香港天文台',
    label: 'Hong Kong Observatory'
}, {
    value: '潮汐数据',
    label: 'Tide data'
}, {
    value: '水质数据',
    label: 'Tide data'
}, {
    value: '深圳气象数据网',
    label: 'Shenzhen Meteorological Data Network'
}, {
    value: '太阳辐射',
    label: 'Sun radiation'
}];



//表格数据
var analTableData = [{ //测试数据	
    observation: '123',
    area: '深圳湾', //海域
    PH: '7.2',
    temperature: '23', //温度
    chlorine: '0.5ppm', //余氯
    turbidity: '980NTU', //浊度
    dissolves: '7.5mg/L', //溶解氢
    NH3: '1.3mg/L', //
    early: '123123', //预警
    time: '2019/06/25' //
},{ //测试数据
    observation: '123',
    area: '深圳湾', //海域
    PH: '7.2',
    temperature: '23', //温度
    chlorine: '0.5ppm', //余氯
    turbidity: '980NTU', //浊度
    dissolves: '7.5mg/L', //溶解氢
    NH3: '1.3mg/L', //
    early: '123123', //预警
    time: '2019/06/25' //
},{ //测试数据
    observation: '123',
    area: '深圳湾', //海域
    PH: '7.2',
    temperature: '23', //温度
    chlorine: '0.5ppm', //余氯
    turbidity: '980NTU', //浊度
    dissolves: '7.5mg/L', //溶解氢
    NH3: '1.3mg/L', //
    early: '123123', //预警
    time: '2019/06/25' //
},{ //测试数据
    observation: '123',
    area: '深圳湾', //海域
    PH: '7.2',
    temperature: '23', //温度
    chlorine: '0.5ppm', //余氯
    turbidity: '980NTU', //浊度
    dissolves: '7.5mg/L', //溶解氢
    NH3: '1.3mg/L', //
    early: '123123', //预警
    time: '2019/06/25' //
},{ //测试数据
    observation: '123',
    area: '深圳湾', //海域
    PH: '7.2',
    temperature: '23', //温度
    chlorine: '0.5ppm', //余氯
    turbidity: '980NTU', //浊度
    dissolves: '7.5mg/L', //溶解氢
    NH3: '1.3mg/L', //
    early: '123123', //预警
    time: '2019/06/25' //
},{ //测试数据
    observation: '123',
    area: '深圳湾', //海域
    PH: '7.2',
    temperature: '23', //温度
    chlorine: '0.5ppm', //余氯
    turbidity: '980NTU', //浊度
    dissolves: '7.5mg/L', //溶解氢
    NH3: '1.3mg/L', //
    early: '123123', //预警
    time: '2019/06/25' //
},{ //测试数据
    observation: '123',
    area: '深圳湾', //海域
    PH: '7.2',
    temperature: '23', //温度
    chlorine: '0.5ppm', //余氯
    turbidity: '980NTU', //浊度
    dissolves: '7.5mg/L', //溶解氢
    NH3: '1.3mg/L', //
    early: '123123', //预警
    time: '2019/06/25' //
},{ //测试数据
    observation: '123',
    area: '深圳湾', //海域
    PH: '7.2',
    temperature: '23', //温度
    chlorine: '0.5ppm', //余氯
    turbidity: '980NTU', //浊度
    dissolves: '7.5mg/L', //溶解氢
    NH3: '1.3mg/L', //
    early: '123123', //预警
    time: '2019/06/25' //
},{ //测试数据
    observation: '123',
    area: '深圳湾', //海域
    PH: '7.2',
    temperature: '23', //温度
    chlorine: '0.5ppm', //余氯
    turbidity: '980NTU', //浊度
    dissolves: '7.5mg/L', //溶解氢
    NH3: '1.3mg/L', //
    early: '123123', //预警
    time: '2019/06/25' //
},{ //测试数据
    observation: '123',
    area: '深圳湾', //海域
    PH: '7.2',
    temperature: '23', //温度
    chlorine: '0.5ppm', //余氯
    turbidity: '980NTU', //浊度
    dissolves: '7.5mg/L', //溶解氢
    NH3: '1.3mg/L', //
    early: '123123', //预警
    time: '2019/06/25' //
},{ //测试数据
    observation: '123',
    area: '深圳湾', //海域
    PH: '7.2',
    temperature: '23', //温度
    chlorine: '0.5ppm', //余氯
    turbidity: '980NTU', //浊度
    dissolves: '7.5mg/L', //溶解氢
    NH3: '1.3mg/L', //
    early: '123123', //预警
    time: '2019/06/25' //
},{ //测试数据
    observation: '123',
    area: '深圳湾', //海域
    PH: '7.2',
    temperature: '23', //温度
    chlorine: '0.5ppm', //余氯
    turbidity: '980NTU', //浊度
    dissolves: '7.5mg/L', //溶解氢
    NH3: '1.3mg/L', //
    early: '123123', //预警
    time: '2019/06/25' //
},{ //测试数据
    observation: '123',
    area: '深圳湾', //海域
    PH: '7.2',
    temperature: '23', //温度
    chlorine: '0.5ppm', //余氯
    turbidity: '980NTU', //浊度
    dissolves: '7.5mg/L', //溶解氢
    NH3: '1.3mg/L', //
    early: '123123', //预警
    time: '2019/06/25' //
},{ //测试数据
    observation: '123',
    area: '深圳湾', //海域
    PH: '7.2',
    temperature: '23', //温度
    chlorine: '0.5ppm', //余氯
    turbidity: '980NTU', //浊度
    dissolves: '7.5mg/L', //溶解氢
    NH3: '1.3mg/L', //
    early: '123123', //预警
    time: '2019/06/25' //
},{ //测试数据
    observation: '123',
    area: '深圳湾', //海域
    PH: '7.2',
    temperature: '23', //温度
    chlorine: '0.5ppm', //余氯
    turbidity: '980NTU', //浊度
    dissolves: '7.5mg/L', //溶解氢
    NH3: '1.3mg/L', //
    early: '123123', //预警
    time: '2019/06/25' //
},{ //测试数据
    observation: '123',
    area: '深圳湾', //海域
    PH: '7.2',
    temperature: '23', //温度
    chlorine: '0.5ppm', //余氯
    turbidity: '980NTU', //浊度
    dissolves: '7.5mg/L', //溶解氢
    NH3: '1.3mg/L', //
    early: '123123', //预警
    time: '2019/06/25' //
},{ //测试数据
    observation: '123',
    area: '深圳湾', //海域
    PH: '7.2',
    temperature: '23', //温度
    chlorine: '0.5ppm', //余氯
    turbidity: '980NTU', //浊度
    dissolves: '7.5mg/L', //溶解氢
    NH3: '1.3mg/L', //
    early: '123123', //预警
    time: '2019/06/25' //
},  ];


//表格数据
var usreData = [{ //测试数据	
    ID: 'AS2F1G211',
    usename: '张珊', //海域
    name: 'zhangshan',
    password: '123456', //温度
    status: '普通用户', //余氯
}, {
    ID: 'F1G23AS',
    usename: 'admin', //海域
    name: 'admin',
    password: 'admin', //温度
    status: '管理员', //余氯
}];




//恭喜深圳气象改版，开香槟！    淦！
//深圳  气象
// var SZWeatherPopupTemplate = {
//     title: " {siteName} 气象观测点<div style='display: none'> {fengxiang}{jiangshui}{qiwen}{qiya}{shidu}{shidu}{time}{siteID}</div>",
//     content: function(e){
//         var attributes=e.graphic.attributes;
//         console.log(attributes);
//         console.log(document.getElementById("siteNameExp"));
//         document.getElementById("siteNameExp").innerHTML=attributes.siteName+"";
//         document.getElementById("fengxiangExp").innerHTML=attributes.fengxiang+"";
//         // var jiangshui="";
//         // if(!attributes.jiangshui){
//         //     jiangshui="无降水";
//         // }else{
//         //     jiangshui=attributes.jiangshui;
//         // }
//         // document.getElementById("jiangshuiExp").innerText=jiangshui+"";
//         document.getElementById("qiwenExp").innerHTML=attributes.qiwen+"";
//         document.getElementById("qiyaExp").innerHTML=attributes.qiya+"";
//         document.getElementById("shiduExp").innerHTML=attributes.shidu+"";
//         document.getElementById("timeExp").innerHTML=attributes.time+"";
//         document.getElementById("siteIDExp").value=attributes.siteID;
//         var mapLayerHtml=document.getElementById("mapLayerHtml");
//         return mapLayerHtml;
//     },
// };

var HongKongWeatherPopupTemplate_en = {
    title: " {siteName} "+messages.en.baseData.Meteorological_Observation_Point,
    content: [{
        type: "fields", // Autocasts as new FieldsContent()
        // Autocasts as new FieldInfo[]
        fieldInfos: [
            {
                fieldName: "time",
                label: messages.en.baseData.time,
            }, {
                fieldName: "qiya",
                label: messages.en.baseData.air_pressure,
            }, {
                fieldName: "qiwenMax",
                label: messages.en.baseData.maximum,
            }, {
                fieldName: "qiwenPj",
                label: messages.en.baseData.average_temperature,
            }, {
                fieldName: "qiwenMin",
                label: messages.en.baseData.minimum_temperature,
            }, {
                fieldName: "ludian",
                label: messages.en.baseData.point_temperature,
            }, {
                fieldName: "shidu",
                label: messages.en.baseData.relative_humidity,
            }, {
                fieldName: "yunliang",
                label: messages.en.baseData.Average_cloud,
            }, {
                fieldName: "yuliang",
                label: messages.en.baseData.total_rainfall,
            }, {
                fieldName: "fengxiang",
                label: messages.en.baseData.direction_wind,
            }, {
                fieldName: "fengshu",
                label: messages.en.baseData.Average_wind_speed,
            },]
    }]
};

var WaterPopupTemplate_en = {
    title: " {siteName} "+messages.en.baseData.Water_quality_observation_point,
    content: [{
        type: "fields", // Autocasts as new FieldsContent()
        // Autocasts as new FieldInfo[]
        fieldInfos: [
            {
                fieldName: "time",
                label: messages.en.baseData.date,
            }, {
                fieldName: "germ",
                label:  messages.en.baseData.Ecoli,
            }, {
                fieldName: "oxygen",
                label: messages.en.baseData.Dissolved_oxygen,
            }]
    }]
};


